﻿using Coldairarrow.Business.Base_Manage;
using Coldairarrow.Business.Interface;
using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.Interface;
using Coldairarrow.Util;
using EFCore.Sharding;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.Base_Manage
{
    /// <summary>
    /// 操作多平台订单
    /// </summary>
    [Route("/OpenApi/[controller]/[action]")]
    [AllowAnonymous]
   
    public class OL_CaptureController : BaseApiController
    {

        OL_CaptureBusiness OL_CaptureBusiness_ { get; }
        public OL_CaptureController(IDbAccessor db)
        {
            OL_CaptureBusiness_ = new OL_CaptureBusiness(db);
        }
        

        [HttpPost]
        public async Task<string> PushToKingdee(List<AP_PAYBILL_SAVEDTO> items)
        {
            return await OL_CaptureBusiness_.PushToKingdee(items);
        }

        [HttpPost]
        public async Task<string> Verify(List<AP_PAYBILL_SAVEDTO> items)
        {
            return await OL_CaptureBusiness_.Verify(items);
        }

        [HttpPost]
        public  string jdtest(object items)
        {
            return "OK";
        }
    }
}